package cn.xyhelp.shop.repository.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存单元
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("stock_unit")
public class StockUnit extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 序列号，类型标识
     */
    @TableField("serial_number")
    private String serialNumber;

    /**
     * 库存单元名称
     */
    @TableField("name")
    private String name;

    /**
     * 图片地址
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 库存类型，缺货时是否可以销售
     */
    @TableField("stock_type")
    private Integer stockType;

    /**
     * 库存
     */
    @TableField("stock")
    private Integer stock;

    @TableField("supplier_id")
    private Integer supplierId;

    @TableField("store_id")
    private Integer storeId;


}
